Git Bashの見た目・操作改善方法
C:\Program Files\Git\etc\profile.d\git-prompt.sh内の
# change to greenの行から# show MSYSTEMの行までをコメントアウト
下記コードでの3行目から6行目をコメントアウトすると、プロンプトから要らない情報を消せる
結果、User@host MINWG32 ~/ChromeExtensions/sample (main)
のUser@host MINWG32部分を消して~/ChromeExtensions/sample (main)と、見やすくできる
code:git-prompt.sh
PS1='\\0330;$MSYSTEM:${PWD//[^:ascii:]/?}\007\]' # set window title PS1="$PS1"'\n' # new line
PS1="$PS1"'\[\03333m\' # change to brownish yellow PS1="$PS1"'\w' # current working directory
############################################ 以下略 ############################################